package com.qf.hospital.system.mapper;

import com.qf.hospital.system.entity.SysMenu;
import com.qf.hospital.system.vo.DTreeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    SysMenu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);



    // 查询全部菜单-->
    List<DTreeVO> findAllMenuAsDTreeVOBySpread(@Param("spread") Integer spread);
}